package com.lyl.security.module.security.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Mr.Luo
 * @date 2022-09-09 16:00
 * @desc 安全配置文件
 */
@Data
//@Component
@ConfigurationProperties(
        prefix = "security"
)
public class SecurityProperties {
    /**
     * 需要放行的urls
     */
    private String[] excludeUrls;

    /**
     * token相关
     */
    private InnerToken token;

    @Data
    public static class InnerToken {

        /**
         * 令牌自定义标识
         */
        private String header = "Authorization";
        /**
         * token令牌密钥
         */
        private String secret;

        /**
         * 令牌有效期
         */
        private int expireTime = 30;
    }
}
